package com.rockpaperscissorlhh.game;

import com.rockpaperscissorlhh.object.Computer;
import com.rockpaperscissorlhh.object.Person;
import com.rockpaperscissorlhh.service.Rockpaperscissor;
import com.rockpaperscissorlhh.service.RockpaperscissorImpl;
import lombok.extern.slf4j.Slf4j;

import java.util.Random;
import java.util.Scanner;

import static jdk.nashorn.internal.runtime.regexp.joni.Config.log;
@Slf4j
public class Game<Computerwin> {
    public static void main(String[] args){

        int Draws = 0;
        int Personwin =0;
        int Personlosses =0;
        int Computerwin=0;
        int Computerlosses=0;

        Computer computer = new Computer();
        Person person = new Person();
        int run = (person.getHand() - computer.getHand()+3)%3;
            switch(run){
                case 0:
                    log.info("打平了");
                    Draws++;
                    break;
                case 1:
                    log.info("人赢了");
                    Personwin++;
                    break;
                case 2:
                    log.info("人输了");
                    Personlosses++;
                    break;
                case 3:
                    log.info("电脑赢了");
                    Computerwin++;
                    break;
                case 4:
                    log.info("电脑输了");
                    Computerlosses++;
                    break;
                default:
                    break;
            }
        System.out.println("");
        }


    }

